import {post,get} from './fetch.js'
const mini = uni.getAccountInfoSync()
const AppId = mini.miniProgram.appId
export default {
	login:(data,params)=>{
		return post('/wx/mini_program/login',{...data,app_id:AppId},params)
	},
	bind:(data,params)=>{
		return post('/wx/mini_program/bind',{...data,app_id:AppId},params)
	},
	init:(data,params)=>{
		return post('/init',data,params)
	},
	homeMenu:(data,params)=>{
		return post('/get_home_menu_list',data,params)
	},
	homeList:(data,params)=>{
		return post('/get_home_list',data,params)
	},
	exchangeList:(data,params)=>{
		return post('/get_goods_list',data,params)
	},
	getUserInfo:(data,params)=>{
		return post('/get_user_info',data,params)
	},
	productDetail:(data,params)=>{
		return post('/get_goods_info',data,params)
	},
	canSupportList:(data,params)=>{
		return post('/can_support_wish_list',data,params)
	},
	supportWish:(data,params)=>{
		return post('/mini/support_wish',{...data,app_id:AppId},params)
	},
	preOrder:(data,params)=>{
		return post('/mini/pre_initiate_wish',data,params)
	},
	pbulishWish:(data,params)=>{
		return post('/mini/initiate_wish',data,params)
	},
	getDefaultAddress:(data,params)=>{
		return post('/address/get_default_address',data,params)
	},
	addAdress:(data,params)=>{
		return post('/address/add_address',data,params)
	},
	editAdress:(data,params)=>{
		return post('/address/update_address',data,params)
	},
	getAddressList:(data,params)=>{
		return post('/address/get_address_list',data,params)
	},
	getPublishList:(data,params)=>{
		return post('/my_initiate_wish_list',data,params)
	},
	getSupportList:(data,params)=>{
		return post('/my_support_wish_list',data,params)
	},
	getShareInfo:(data,params)=>{
		return post('/get_share_wish_info',data,params)
	},
	getWishDetail:(data,params)=>{
		return post('/get_wish_info',data,params)
	},
	cancelWish:(data,params)=>{
		return post('/mini/cancel_wish',data,params)
	},
	getSupportSuccessInfo:(data,params)=>{
		return post('/mini/support_wish_after/get_windows_info',data,params)
	},
	getBeforeSupportInfo:(data,params)=>{
		return post('/mini/support_wish_before/get_windows_info',data,params)
	},
	delAddress:(data,params)=>{
		return post('/address/del_address',data,params)
	},
	getAccountDetail:(data,params)=>{
		return post('/get_bill_list',data,params)
	},
	getPopups:(data,params)=>{
		return post('/get_home_pop',data,params)
	},
	confirmGive:(data,params)=>{
		return post('/register_give',data,params)
	},
	getExchangeRule:(data,params)=>{
		return post('/get_exchange_rule',data,params)
	},
	getNewGuideImg:(data,params)=>{
		return post('/new_user_guide_rule',data,params)
	},
	getAboutImg:(data,params)=>{
		return post('/get_about_wish_circle_rule',data,params)
	},
	getAggrementImg:(data,params)=>{
		return post('/get_user_agreement_rule',data,params)
	},
	getExplainImg:(data,params)=>{
		return post('/get_wish_value_rule',data,params)
	},
	bindFriend:(data,params)=>{
		return post('/bind_wx_friend',data,params)
	},
	isReview:(data,params)=>{
		return post('/mini_review',data,params)
	},
	tempLogin:(data,params)=>{
		return post('/wx/mini_program/account_login',data,params)
	},
	decodeScene:(data,params)=>{
		return post('/wx/mini_program/decrypt_scene',data,params)
	},
	getIndexNotice:(data,params)=>{
		return post('/get_home_marquee',data,params)
	},
	getGoodsMarqueue:(data,params)=>{
		return post('/get_goods_detail_marquee',data,params)
	},
	getWishMarqueue:(data,params)=>{
		return post('/get_wish_detail_marquee',data,params)
	},
	getWishNewPopupInfo:(data,params)=>{
		return post('/get_wish_detail_welfare_pop',data,params)
	},
}	